package com.cuixichang.minimalism.core.exception.config;

import com.cuixichang.minimalism.core.exception.handler.ExceptionHandlerGlobal;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ExceptionAutoConfig {
    @Bean
    public ExceptionHandlerGlobal globalExceptionHandler() {
        return new ExceptionHandlerGlobal();
    }
}
